package com.hy.ai.entity.query;

import lombok.Data;
import org.springframework.ai.tool.annotation.ToolParam;

import java.util.List;

@Data
public class ProduceQuery {
    @ToolParam(required = false,description = "商品类型：手机、耳机、鞋类、手办")
    private String category;
    @ToolParam(required = false,description = "排序方式")
    private List<sort> sorts;

    @Data
    public static class sort{
        @ToolParam(required = false,description = "排序字段：price或者createdAt")
        private String filed;
        @ToolParam(required = false,description = "是否升序:true/false")
        private Boolean asc;
    }
}
